package com.webservice.server;

import com.webservice.serivce.impl.HelloWorldImpl;
import org.apache.cxf.jaxws.JaxWsServerFactoryBean;

public class HelloWorldServer {
    public static void main(String[] args) {
        JaxWsServerFactoryBean jaxWsServerFactoryBean = new JaxWsServerFactoryBean();
        jaxWsServerFactoryBean.setAddress("http://127.0.0.1:9001/HelloWorldServer");
//        jaxWsServerFactoryBean.setServiceClass(HelloWorldImpl.class);
        jaxWsServerFactoryBean.setServiceBean(new HelloWorldImpl());

        jaxWsServerFactoryBean.create().start();

        System.out.println("123456");
    }
}
